package com.woniu.customer.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName ecp_clients_request_special
 */
@TableName(value ="ecp_clients_request_special")
@Data
public class RequestSpecial implements Serializable {
    /**
     * 特殊发货申请编号
     */
    @TableId(type = IdType.AUTO)
    private Long specialId;

    /**
     * 填写人ID
     */
    private Long writterId;

    /**
     * 填写人名称
     */
    private String writterName;

    /**
     * 填写人电话
     */
    private String writterPhone;

    /**
     * 填写人邮件
     */
    private String writterEmail;

    /**
     * 申请日期
     */
    private Date applicationDate;

    /**
     * 销售员ID
     */
    private Long salesmanId;

    /**
     * 销售员名称
     */
    private String salesmanName;

    /**
     * 销售员电话
     */
    private String salesmanPhone;

    /**
     * 销售员邮件
     */
    private String salesmanEmail;

    /**
     * 销售员所属地区/办事处
     */
    private String salesmanAddress;

    /**
     * 商务地区/办事处
     */
    private String businessAddress;

    /**
     * 公司商务
     */
    private String companyBusiness;

    /**
     * 客户ID
     */
    private Long customerId;

    /**
     * 客户名称
     */
    private String customerName;

    /**
     * 具体要求
     */
    private String specificRequirements;

    /**
     * 备注
     */
    private String remark;

    /**
     * 附件上传
     */
    private String attachmentUpload;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RequestSpecial other = (RequestSpecial) that;
        return (this.getSpecialId() == null ? other.getSpecialId() == null : this.getSpecialId().equals(other.getSpecialId()))
            && (this.getWritterId() == null ? other.getWritterId() == null : this.getWritterId().equals(other.getWritterId()))
            && (this.getWritterName() == null ? other.getWritterName() == null : this.getWritterName().equals(other.getWritterName()))
            && (this.getWritterPhone() == null ? other.getWritterPhone() == null : this.getWritterPhone().equals(other.getWritterPhone()))
            && (this.getWritterEmail() == null ? other.getWritterEmail() == null : this.getWritterEmail().equals(other.getWritterEmail()))
            && (this.getApplicationDate() == null ? other.getApplicationDate() == null : this.getApplicationDate().equals(other.getApplicationDate()))
            && (this.getSalesmanId() == null ? other.getSalesmanId() == null : this.getSalesmanId().equals(other.getSalesmanId()))
            && (this.getSalesmanName() == null ? other.getSalesmanName() == null : this.getSalesmanName().equals(other.getSalesmanName()))
            && (this.getSalesmanPhone() == null ? other.getSalesmanPhone() == null : this.getSalesmanPhone().equals(other.getSalesmanPhone()))
            && (this.getSalesmanEmail() == null ? other.getSalesmanEmail() == null : this.getSalesmanEmail().equals(other.getSalesmanEmail()))
            && (this.getSalesmanAddress() == null ? other.getSalesmanAddress() == null : this.getSalesmanAddress().equals(other.getSalesmanAddress()))
            && (this.getBusinessAddress() == null ? other.getBusinessAddress() == null : this.getBusinessAddress().equals(other.getBusinessAddress()))
            && (this.getCompanyBusiness() == null ? other.getCompanyBusiness() == null : this.getCompanyBusiness().equals(other.getCompanyBusiness()))
            && (this.getCustomerId() == null ? other.getCustomerId() == null : this.getCustomerId().equals(other.getCustomerId()))
            && (this.getCustomerName() == null ? other.getCustomerName() == null : this.getCustomerName().equals(other.getCustomerName()))
            && (this.getSpecificRequirements() == null ? other.getSpecificRequirements() == null : this.getSpecificRequirements().equals(other.getSpecificRequirements()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getAttachmentUpload() == null ? other.getAttachmentUpload() == null : this.getAttachmentUpload().equals(other.getAttachmentUpload()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSpecialId() == null) ? 0 : getSpecialId().hashCode());
        result = prime * result + ((getWritterId() == null) ? 0 : getWritterId().hashCode());
        result = prime * result + ((getWritterName() == null) ? 0 : getWritterName().hashCode());
        result = prime * result + ((getWritterPhone() == null) ? 0 : getWritterPhone().hashCode());
        result = prime * result + ((getWritterEmail() == null) ? 0 : getWritterEmail().hashCode());
        result = prime * result + ((getApplicationDate() == null) ? 0 : getApplicationDate().hashCode());
        result = prime * result + ((getSalesmanId() == null) ? 0 : getSalesmanId().hashCode());
        result = prime * result + ((getSalesmanName() == null) ? 0 : getSalesmanName().hashCode());
        result = prime * result + ((getSalesmanPhone() == null) ? 0 : getSalesmanPhone().hashCode());
        result = prime * result + ((getSalesmanEmail() == null) ? 0 : getSalesmanEmail().hashCode());
        result = prime * result + ((getSalesmanAddress() == null) ? 0 : getSalesmanAddress().hashCode());
        result = prime * result + ((getBusinessAddress() == null) ? 0 : getBusinessAddress().hashCode());
        result = prime * result + ((getCompanyBusiness() == null) ? 0 : getCompanyBusiness().hashCode());
        result = prime * result + ((getCustomerId() == null) ? 0 : getCustomerId().hashCode());
        result = prime * result + ((getCustomerName() == null) ? 0 : getCustomerName().hashCode());
        result = prime * result + ((getSpecificRequirements() == null) ? 0 : getSpecificRequirements().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getAttachmentUpload() == null) ? 0 : getAttachmentUpload().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", specialId=").append(specialId);
        sb.append(", writterId=").append(writterId);
        sb.append(", writterName=").append(writterName);
        sb.append(", writterPhone=").append(writterPhone);
        sb.append(", writterEmail=").append(writterEmail);
        sb.append(", applicationDate=").append(applicationDate);
        sb.append(", salesmanId=").append(salesmanId);
        sb.append(", salesmanName=").append(salesmanName);
        sb.append(", salesmanPhone=").append(salesmanPhone);
        sb.append(", salesmanEmail=").append(salesmanEmail);
        sb.append(", salesmanAddress=").append(salesmanAddress);
        sb.append(", businessAddress=").append(businessAddress);
        sb.append(", companyBusiness=").append(companyBusiness);
        sb.append(", customerId=").append(customerId);
        sb.append(", customerName=").append(customerName);
        sb.append(", specificRequirements=").append(specificRequirements);
        sb.append(", remark=").append(remark);
        sb.append(", attachmentUpload=").append(attachmentUpload);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}